couchdb: use CONSTANT:.
parent
942e4ffee2
commit
44a8bbe3e4
|
@ -60,9 +60,9 @@ PREDICATE: file-exists-error < couchdb-error
|
|||
! server
|
||||
TUPLE: server { host string } { port integer } { uuids vector } { uuids-to-cache integer } ;
|
||||
|
||||
: default-couch-host ( -- host ) "localhost" ; inline
|
||||
: default-couch-port ( -- port ) 5984 ; inline
|
||||
: default-uuids-to-cache ( -- n ) 100 ; inline
|
||||
CONSTANT: default-couch-host "localhost"
|
||||
CONSTANT: default-couch-port 5984
|
||||
CONSTANT: default-uuids-to-cache 100
|
||||
|
||||
: <server> ( host port -- server )
|
||||
V{ } clone default-uuids-to-cache server boa ;
|
||||
|
|
Loading…
Reference in New Issue