websocket: server: Remove .upgrade-paths accessor.
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>
Thu, 18 Mar 2021 13:20:02 +0000 (14:20 +0100)
committerJan (janneke) Nieuwenhuizen <janneke@gnu.org>
Thu, 18 Mar 2021 21:49:23 +0000 (22:49 +0100)
* 8sync/systems/websocket/server.scm (<websocket-server>): Remove
.upgrade-paths accessor.  There's a method for doing this.

8sync/systems/websocket/server.scm

index c29ce51e44c40c545219f258daad01dee5207631..11704d477e61a5051afdb2c24c103d360a4c4086 100644 (file)
@@ -1,7 +1,7 @@
 ;;; guile-websocket --- WebSocket client/server
 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
 ;;; Copyright © 2017 Christopher Allan Webber <cwebber@dustycloud.org>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
 ;;;
 ;;; This file is part of guile-websocket.
 ;;;
@@ -71,8 +71,7 @@ string."
   ((ws-send websocket-server-send))
   (upgrade-paths #:init-value `(("websocket" .
                                  ,(wrap-apply websocket-client-loop)))
-                 #:allocation #:each-subclass
-                 #:accessor .upgrade-paths)
+                 #:allocation #:each-subclass)
 
   (gen-client-id #:init-thunk make-simple-counter)